package CTRLayer;

import java.util.ArrayList;
import DBLayer.DBTrainingActivity;
import ModelLayer.TrainingActivity;

public class TrainingActivityCTR
{
	public ArrayList<TrainingActivity> findAllTrainingActivity()
    {
		DBTrainingActivity dbTrainingActivity = new DBTrainingActivity();
        ArrayList<TrainingActivity> allTrainingActivity = new ArrayList<TrainingActivity>();
        allTrainingActivity = dbTrainingActivity.getAllTrainingActivity(false);
        return allTrainingActivity;
    }
	
	public TrainingActivity findTrainingActivityID(int TrainingActivityID)
	{
		DBTrainingActivity dbTrainingActivity = new DBTrainingActivity();
		return dbTrainingActivity.searchTrainingActivityID(TrainingActivityID, true);
	}
	
	public TrainingActivity findTrainingActivityName(String TrainingActivityName)
	{
		DBTrainingActivity dbTrainingActivity = new DBTrainingActivity();
		return dbTrainingActivity.searchTrainingActivityName(TrainingActivityName, true);
	}
}